package yl.hs.bmipfull.service.finance;

import yl.hs.bmipfull.pojo.production.BrickShipOrderModel;
import yl.hs.bmipfull.service.IBaseService;
import yl.hs.bmipfull.viewmodels.PageQuery;
import yl.hs.bmipfull.viewmodels.PageResult;
import yl.hs.bmipfull.viewmodels.SubmitModel;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

/*
 * IBrickShipSettleService
 * @category
 * @author 谢景广
 * @date 2023-01-03
 */
public interface IBrickShipSettleService extends IBaseService {
    PageResult<Map<String,Object>> queryPage(PageQuery query, int rowNum, int page) throws Exception;

    Map<String,Object> querySettleDetailsBySettleSN(String settleSN);

    List<Map<String,Object>> queryTempSettleDetails(String contractSN,String startDate, String endDate) throws ParseException;

    List<BrickShipOrderModel> queryOrdersSettleDetails(String contractSN, String startDate, String endDate) throws ParseException;

    Integer cancelSettle(String settleSN);

    Integer saveSettle(SubmitModel submitModel) throws Exception;

    List<BrickShipOrderModel> querySettleOrdersBySettleSN(String settleSN);

    List<BrickShipOrderModel> querySettleOrdersBySnList(String snList);


    List<BrickShipOrderModel> brickSaleStatistics(PageQuery pageQuery);
    int brickCountCars(PageQuery pageQuery);

}
